package com.lagou.io;

import java.io.InputStream;

/**
 * @author Kirito
 * @description: Resources
 * @date 2020/03/25
 */
public class Resources {

    /**
     * private Constructor
     */
    private Resources(){
    }

    /**
     * 根据应用端传递的配置文件路径加载配置文件成字节输入流，存储在内存中
     * @param path String
     * @return InputStream
     */
    public static InputStream getResourcesAsStream(String path) {
        return Resources.class.getClassLoader().getResourceAsStream(path);
    }
}
